'use strict';

const Service = require('egg').Service;

class MovieService extends Service {
  async find(m) {
    const db = this.app.mongodb;
    const res = await db.collection(m).find().toArray();
    return res;
  }
}

module.exports = MovieService;
